package com.unitechs.controller.object;

import com.unitechs.commons.utils.ZyucObjectUtil;
import com.unitechs.controller.DevinfoChildTest;
import com.unitechs.controller.DevinfoTest;

public class ObjectTest {
    public static void main(String[] args) {
        DevinfoTest test=new DevinfoTest();
        test.setDevid("RD0001");
        test.setNodeid("");
        test.setDevtype("  ");
        test.setDevname(null);

        DevinfoChildTest devinfoChildTest = new DevinfoChildTest();
        devinfoChildTest.setNodename("");
        devinfoChildTest.setNodeid("  ");
        test.setDevinfoChildTest(devinfoChildTest);
        System.out.println(test);

        getDevinfo(test);

    }

    public static void getDevinfo(DevinfoTest req){
        ZyucObjectUtil.zyucSetEmptyFieldsToNull(req);
        ZyucObjectUtil.zyucSetEmptyFieldsToNull(req.getDevinfoChildTest());

        System.out.println(req);


    }
}
